package com.burger.counter.business;

import com.burger.counter.beans.Sauce;
import com.burger.counter.dao.SauceDao;

public class SauceBussiness {

	public Sauce[] getSauceWithPriceDetails(int regionId)
	{
		Sauce[] sauceDetails = null;
		try
		{
			System.out.println("we are in bussiness layer");
			SauceDao sauceDAO = new SauceDao();
			sauceDetails = sauceDAO.getSauceWithPriceDetails(regionId);
			return sauceDetails;
		}
		catch(Exception e)
		{
			System.err.println(e);
		}
		return sauceDetails;
	}
	public Sauce[] getSauceDetails(Integer regionId) {
		
		System.out.println("we r in sauce business layer");
		SauceDao sauceDao = new SauceDao();
		Sauce[] sauce=sauceDao.getSauceWithoutPriceDetails(regionId);
		return sauce;
	}
}
